<?php


namespace app\admin\controller\v1;

use app\BaseController;
use think\exception\HttpException;

/**
 * @author : SN
 * @time   : 2020/3/30 13:37
 * @des    : Demo
 */
class Demo extends BaseController
{

    public function index(){
        return 'index';
    }

    public function get()
    {
        //$i = 1/0;
        //throw new HttpException(500, 'aaa');
        return 'get';
    }

    public function add()
    {
        return 'add';
    }

    public function update(){
        return 'update';
    }

    public function delete()
    {
        return 'delete';
    }

}